home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
windownt
/
cshx86.zip
/
SAMPLES
/
SAMPLES.MAK
< prev
next >
Wrap
Makefile
|
1993-04-14
|
1KB
|
61 lines
!ifndef CPU
CPU = i386
!endif
!if "$(CPU)" != "ALPHA"
stdflags = -c -Oxa -W4 -DNT -Dcdecl= -Dend=EndOfData -Fo$(obj)\$(@B).obj -DWIN32
cvtobj = REM No longer needed.
!endif
!if "$(CPU)" == "i386"
NTTools = i:\mstools
cc = cl386
cflags = $(stdflags) -Di386=1 -D_X86_=1
obj = nt
!else
!if "$(CPU)" == "MIPS"
NTTools = d:\mstools
cc = mcl
cflags = $(stdflags) -DMIPS=1 -D_MIPS_=1
obj = mips
!else
NTTools = c:\mstools
cc = acc
inc = -I$(NTTools)\h
iclflags = -c -std -G 0 -checkstack 4096 -o $(obj)\$(@B).obj -O2
ntflags = -DNT -DALPHA=1 -D_ALPHA_=1 -DWIN32 -Dcdecl= -Dend=EndOfData
cflags = $(iclflags) $(ntflags) $(inc)
cvtdebug =
cvtobj = a2coff $(cvtdebug)
obj = alpha
!endif
!endif
LIB = $(NTTools)\lib
INCLUDE = $(NTTools)\h
conlibs = libcmt.lib ntdll.lib kernel32.lib
wildargv = $(LIB)\setargv.obj
linkdebug = -debug:none
link = link32 -subsystem:console -entry:mainCRTStartup $(linkdebug)
{.}.c{$(obj)}.exe:
$(cc) $(cflags) $<
$(cvtobj) $(obj)\$(@B).obj
$(link) -out:$@ $(obj)\$(@B).obj $(conlibs)
all: $(obj)\args.exe $(obj)\dumpenv.exe $(obj)\myecho.exe $(obj)\rcode.exe